package pers.vankid.timecount.model;

/**
 * Created by shixj on 2018/4/19.
 */
public class TimeUnit {
    private int year;
    private int month;
    private int day;

    public TimeUnit() {
    }
    public TimeUnit(String date) {
        String[]time=date.split("-");
        year=Integer.valueOf(time[0]);
        month=Integer.valueOf(time[1]);
        day=Integer.valueOf(time[2]);
    }
    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }
}
